package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for accountGroupUser resource.
func SetAccountGroupUserRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewAccountGroupUserHandler(db)

	routerGroup.GET("/query-available-account-groups", h.QueryAvailableAccountGroups)
	routerGroup.POST("/remove", h.Remove)
	routerGroup.POST("/quit", h.Quit)
}
